<template>
	<view class="aboutbox">
		<view class="content">
			<image v-for="(t, idx) in dataImg" :key="idx" :src="t" mode="widthFix"></image>
		</view>
	</view>
</template>

<script>
import { configInfo } from '@/api/yanxue/user.js'
export default {
	data() {
		return {
			dataImg: []
		}
	},
	onLoad(options) {
		this.getData(options.type)
		uni.setNavigationBarTitle({
			title: options.type == 1 ? '衣食住行' : '关于我们'
		})
	},
	methods: {
		getData(type) {
			configInfo({ type }).then(res => {
				this.dataImg = res.result.imageList
			})
		}
	}
}
</script>

<style scoped lang="scss">
.aboutbox {
	width: 750rpx;
	background: linear-gradient(0deg, #c1f26c 0%, #ffffff 100%);
	border-radius: 60rpx 60rpx 0rpx 0rpx;
	padding-bottom: 40rpx;
	.content {
		width: 702rpx;
		background: #ffffff;
		box-shadow: -4rpx 0rpx 19rpx 1rpx rgba(52, 52, 52, 0.15);
		border-radius: 48rpx;
		margin: 32rpx 24rpx;
		padding: 38rpx;
		image {
			width: 626rpx;
		}
	}
}
</style>
